package com.yonyou.marketing.app.api.service;

import java.util.List;
import java.util.Map;

import org.marketing.common.Response;
import org.marketing.common.dto.information.ActivityInfoDto;
import org.marketing.common.dto.information.ActivityItemsDto;
import org.marketing.common.dto.information.ActivityRecordDto;
import org.marketing.common.dto.information.ReadingDto;
import org.marketing.common.dto.leads.ThreadcarDto;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.github.pagehelper.PageInfo;
import com.yonyou.marketing.app.api.model.TmCarKnowledges;

@FeignClient(name="SERVICE-INFORMATION" )
public interface InformationServiceInterface {

	@RequestMapping(value = "/information/api/v1/findCarKnow", method = RequestMethod.GET)
	Response<PageInfo<TmCarKnowledges>> findCarKnow(@RequestParam("pageNum") Integer pageNum
			,@RequestParam("pageSize") Integer pageSize
			,@RequestParam("title") String title);
	
	@RequestMapping(value = "/information/api/v1/findCarKnowDetail", method = RequestMethod.GET)
	Response<List<TmCarKnowledges>> findCarKnowDetail(@RequestParam("ckId") Integer ckId);
	
	@RequestMapping(value = "/information/api/v1/sharepage/newsContent", method = RequestMethod.GET)
	Map<String, Object>  getNewsActivityContent(@RequestParam("naiId") Integer naiId,@RequestParam("type") Integer type);
	
	@RequestMapping(value = "/information/api/v1/sharepage/saveCapitalInfor", method = RequestMethod.POST)
	Map<String, Object>  saveCapitalInfor(ThreadcarDto threadcarDto);
	
	@RequestMapping(value = "/information/api/v1/sharepage/activityItems", method = RequestMethod.GET)
	List<ActivityItemsDto>  getActivityItems(@RequestParam("naiId") Long naiId);
	
	@RequestMapping(value = "/information/api/v1/sharepage/insertPotentialUser", method = RequestMethod.POST)
	Map<String, Object>  insertPotentialUser(ActivityRecordDto activityRecordDto);
	
	@RequestMapping(value = "/information/api/v1/sharepage/readingNum", method = RequestMethod.POST)
	Map<String, Object>  saveReadingNum(ReadingDto readingDto);
	
	@RequestMapping(value = "/information/api/v1/sharepage/sendTicket", method = RequestMethod.POST)
	Map<String, Object>  sendTicket(ReadingDto readingDto);
	
	@RequestMapping(value = "/information/api/v1/activityLists", method = RequestMethod.GET)
	List<ActivityRecordDto>  getActivityList(@RequestParam("userId_") String userId_);
	
	@RequestMapping(value = "/information/api/v1/activityInfo", method = RequestMethod.GET)
	List<ActivityRecordDto>  getActivityInfo(@RequestParam("applyId") Long applyId);
	
	@RequestMapping(value = "/information/api/v1/myNews", method = RequestMethod.GET)
	List<ActivityInfoDto>  getMyNews(@RequestParam("userId_") String userId_,Long activityType);
	
	@RequestMapping(value = "/information/api/v1/myActivities", method = RequestMethod.GET)
	List<ActivityInfoDto>  getMyActivities(@RequestParam("userId_") String userId_);
}
